<?php
/**
 * Created by PhpStorm.
 * User: zl
 * Date: 2017/7/29
 * Time: 0:39
 */
    require_once('LoanFee.php');
    require_once('../Common.php');
    $sectionID = $_REQUEST['sectionID'];    //部门ID，0为全部
    $loan_id = $_REQUEST['loan_id'];   //审批数据的类型,0全部，1差旅报销，2业务报销
    $name = $_REQUEST['username']; //查询用户姓名

    if(!isset($sectionID) || !isset($loan_id) || !isset($name)){
        exit(json_encode(array('state'=>0, 'error'=>'POST_ERROR')));
    }

    $l_fee = new LoanFee();
    echo json_encode($l_fee->getAllLoanFee($sectionID, $name, $loan_id));






?>